package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class Guidance extends Model<Guidance> {

    private static final long serialVersionUID = 1L;

    /**
     * 规范id
     */
    @TableId(value = "guidance_id", type = IdType.AUTO)
    private Long guidanceId;
    /**
     * 是否被冻结（0/1）1表示被冻结
     */
    private Integer freeze;
    /**
     * 违规（0/1）1表示违规
     */
    private Integer violator;
    /**
     * 犯规内容
     */
    private String foulMsg;


    public Long getGuidanceId() {
        return guidanceId;
    }

    public void setGuidanceId(Long guidanceId) {
        this.guidanceId = guidanceId;
    }

    public Integer getFreeze() {
        return freeze;
    }

    public void setFreeze(Integer freeze) {
        this.freeze = freeze;
    }

    public Integer getViolator() {
        return violator;
    }

    public void setViolator(Integer violator) {
        this.violator = violator;
    }

    public String getFoulMsg() {
        return foulMsg;
    }

    public void setFoulMsg(String foulMsg) {
        this.foulMsg = foulMsg;
    }

    @Override
    protected Serializable pkVal() {
        return this.guidanceId;
    }

    @Override
    public String toString() {
        return "Guidance{" +
        ", guidanceId=" + guidanceId +
        ", freeze=" + freeze +
        ", violator=" + violator +
        ", foulMsg=" + foulMsg +
        "}";
    }
}
